﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Management.master" AutoEventWireup="true" CodeFile="AddSection.aspx.cs" Inherits="Course_Create_AddSection" %>
<%@ Import Namespace="Company.StudyClub.BLL.Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <link href="<%= Utility.Source %>/css/jquery-ui.css" rel="stylesheet" type="text/css" />
     <script src="<%= Utility.Source %>/js/jquery-ui.js" type="text/javascript"></script>
     <script src="../../kindeditor/kindeditor.js" type="text/javascript"></script>
     <script src="<%= Utility.Source %>/js/upload.js" type="text/javascript"></script>
     <script type="text/javascript">
        var courseid = <%= CourseID %>;
        
        $(function() {
            formReady();

            $("#rbtn_title").click(function(){
                $("#tr_file,#tr_href,#tr_content").hide();
            });
            
            $("#rbt_video").click(function(){
                $("#tr_href,#tr_content").hide();
                $("#tr_file").show();
            });
            
            $("#rbtn_webpage").click(function(){
                $("#tr_file,#tr_href").hide();
                $("#tr_content").show();
            });
            
            $("#rbtn_resourse").click(function(){
                $("#tr_content").hide();
                $("#tr_file,#tr_href").show();
            });
            
            $("#btn_submit,#btn_submit2").click(function() {
                __doPostBack('ctl00$ContentPlaceHolder1$lbtn_Upload', '');
                openProgress();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="margin:0 30px;">    
    <table cellspacing="1" class="editortable">
        <tr>
            <th width="20%" class="th"></th>
            <td class="td">     
                <input type="button" id="btn_submit2" class="btn" value="提交" />   
            </td>
        </tr>
        <tr>
            <th class="th">课程类型：</th>
            <td class="td">               
                <input type="radio" id="rbtn_title" name="sectiontype" value="1" checked="checked" /><label for="rbtn_title">标题</label>                
                <input type="radio" id="rbt_video" name="sectiontype" value="2" /><label for="rbt_video">视频文件</label>
                <input type="radio" id="rbtn_webpage" name="sectiontype" value="3" /><label for="rbtn_webpage">文本内容</label>
                <input type="radio" id="rbtn_resourse" name="sectiontype" value="4" /><label for="rbtn_resourse">资源包</label>
            </td>
        </tr>
        <tr>
            <th class="th">章节名称：</th>
            <td class="td">               
                <input type="text" id="txt_SectionName" runat="server" class="txt" style="width:300px" />
            </td>
        </tr>
        <tr id="tr_file" style="display:none">
            <th class="th">章节文件：</th>
            <td class="td">               
                <input type="file" name="uploadify" id="uploadify" /><div id="fileQueue" style="height:60px;border:none;display:none;"></div>
            </td>
        </tr>  
        <tr id="tr_href" style="display:none">
            <th class="th">入口页面地址：</th>
            <td class="td">               
                <input type="text" id="txt_Href"  class="txt" style="width:300px" />
            </td>
        </tr>            
        <tr id="tr_content" style="display:none;">
            <th class="th">章节内容：</th>
            <td class="td">               
                <textarea id="txt_content" name="txt_content"></textarea>            
                <script type="text/javascript">
                    var descEditor = CKEDITOR.replace('txt_content', { skin: 'kama', height: '400px', width: '600px' });                   
                </script>   
            </td>
        </tr>      
        <tr>
            <th class="th"></th>
            <td class="td">     
                <input type="button" id="btn_submit" class="btn" value="提交" />   
            </td>
        </tr>         
    </table>
</div>
</asp:Content>

